home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / A-line / Scripts / MakeImports < prev    next >
Encoding:
Text File  |  2000-06-24  |  576 b   |  30 lines

  1. # MakeImports
  2.  
  3. Execute "ALDirMacros"
  4.  
  5. If !`Exists ":{MANIFEST}:"`
  6.     Echo "You need a Manifest folder."
  7.     Exit 1
  8. End
  9.  
  10. Set LABDIR `FindLabFolder`
  11. Set PROJLABDIR "{LABDIR}{ALineProject}:"
  12. If !`Exists "{PROJLABDIR}"`
  13.     NewFolder "{PROJLABDIR}"
  14. End
  15.  
  16. Set RULESDIR "{PROJLAB}{RULES}:"
  17. If !`Exists "{RULESDIR}"`
  18.     Echo "Creating {RULES} folder."
  19.     NewFolder "{RULESDIR}"
  20. End
  21.  
  22. Echo "Processing 'Imports.scf'..."
  23. Set Exit 0
  24. MakeImports.pm ":{MANIFEST}:Imports.scf" > "{RULESDIR}Imports.mk"
  25. If "{Status}"
  26.     Delete -y "{RULESDIR}Imports.mk"
  27.     Exit 1
  28. End
  29. SetFile -c 'R*ch' "{RULESDIR}Imports.mk"
  30.